<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>订单管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
    <link rel="stylesheet" href="style.css">
</head>
<body onload="PR.prettyPrint()">
<nav class="navbar">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="index.html">
                微信小程序-项目接口文档(东软睿乐购)-BaseURL:https://www.fulfill.com/api/v1/
            </a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="https://github.com/YeDaxia/JApiDocs" target="_blank">GitHub</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">V1.0<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                            <li><a href="../temp.htm/index.html">temp.htm</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>
<div class="book with-summary">
    <div class="book-summary">
<div class="search-box form-group">
    <input type="text" class="form-control" id="inputSearch" placeholder="搜索接口">
    <span class="glyphicon glyphicon-search form-control-feedback" aria-hidden="true"></span>
</div>
<div id="accordion" class="catalog">
        <div class="panel">
            <div id="heading0" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse0" aria-controls="collapse0">
                <i class="glyphicon glyphicon-align-justify"></i> 分类
            </div>
            <div id="collapse0" class="collapse in " aria-labelledby="heading0">
                    <a class="catalog-item" href="com_neuedu_ec_controller_CategoriesController.html#categories">
                        商品分类
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading1" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse1" aria-controls="collapse1">
                <i class="glyphicon glyphicon-align-justify"></i> 商品管理
            </div>
            <div id="collapse1" class="collapse " aria-labelledby="heading1">
                    <a class="catalog-item" href="com_neuedu_ec_controller_GoodsController.html#search">
                        商品列表搜索
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_GoodsController.html#detail">
                         商品详情
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading2" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse2" aria-controls="collapse2">
                <i class="glyphicon glyphicon-align-justify"></i> 首页
            </div>
            <div id="collapse2" class="collapse " aria-labelledby="heading2">
                    <a class="catalog-item" href="com_neuedu_ec_controller_HomeController.html#swiperdata">
                        轮播图
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_HomeController.html#catitems">
                        导航
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_HomeController.html#floordata">
                        楼层
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading3" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse3" aria-controls="collapse3">
                <i class="glyphicon glyphicon-align-justify"></i> 订单管理
            </div>
            <div id="collapse3" class="collapse in " aria-labelledby="heading3">
                    <a class="catalog-item" href="com_neuedu_ec_controller_OrdersController.html#create">
                        创建订单
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_OrdersController.html#pay">
                        订单支付(支付模拟，仅改变订单状态为已支付)
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_OrdersController.html#all">
                        查询订单列表
                    </a>
            </div>
        </div>
        <div class="panel">
            <div id="heading4" data-parent="#accordion" class="catalog-title" data-toggle="collapse"
                 aria-expanded="true" data-target="#collapse4" aria-controls="collapse4">
                <i class="glyphicon glyphicon-align-justify"></i> 用户授权
            </div>
            <div id="collapse4" class="collapse " aria-labelledby="heading4">
                    <a class="catalog-item" href="com_neuedu_ec_controller_UserController.html#code2Session">
                        code换Session
                    </a>
                    <a class="catalog-item" href="com_neuedu_ec_controller_UserController.html#wxlogin">
                        获取用户token
                    </a>
            </div>
        </div>
</div>    </div>
    <div class="book-body">
        <div class="body-inner">
            <div class="book-header">
                <div class="d-flex justify-content-between">
                    <a class="header-menu toggle-catalog" href="javascript:void(0)"><i
                            class="glyphicon glyphicon-align-justify"></i> 目录</a>
                </div>
            </div>
            <div class="page-wrapper">
                <div class="page-inner">
                    <div class="action-list">
                        <div class="action-item">
<h2 id="create"><a href="#">创建订单 </a></h2>
    <p class="text-muted"><em>作者: 张金山 https://jshand.gitee.io/</em></p>
<p><strong>请求URL</strong></p>
<p>
    <code>/auth/order/create</code>
        <span class="label label-default">GET</span>
        <span class="label label-default">POST</span>
</p>
                            <p><strong>请求头</strong></p>
                            <table class="table table-bordered">
                                <tr>
                                    <th>请求头名称</th>
                                    <th>类型</th>
                                    <th>必须</th>
                                    <th>描述</th>
                                </tr>
                                <tr style="color:#000;background: #bdc3c0" >
                                    <td>
                                        token
                                    </td>

                                    <td>string</td>
                                    <td>否</td>
                                    <td>请求头信息，用户调用wxlogin接口获取</td>
                                </tr>
                            </table>
    <p><strong>请求参数</strong></p>
            <pre class="prettyprint lang-json">{
  "order_price": "double //订单总价格",
  "consignee_addr": "string //收货地址",
  "goods": [
    {
      "goods_id": "string //商品id",
      "goods_number": "int //购买的数量",
      "goods_price": "double //单价"
    }
  ]
}</pre>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
  "meta": {
    "code": "int //状态码",
    "msg": "string //状态消息"
  },
  "message": {
    "order_id": "int //订单id",
    "order_number": "string",
    "user_id": "string //用户id",
    "order_price": "double //订单总价格",
    "consignee_addr": "string //收货地址",
    "order_pay": "string //订单支付方式",
    "pay_status": "string //订单支付状态（1待支付 2已支付代发货)",
    "createtime": "date //订单生成时间",
    "goods": [
      {
        "goods_id": "int //商品ID",
        "cat_id": "int //分类id",
        "goods_name": "string //商品名称",
        "goods_price": "double //商品价格",
        "goods_number": "int //商品数量",
        "goods_weight": "int //商品重量",
        "goods_big_logo": "string //商品大图标",
        "goods_small_logo": "string //商品小图标",
        "goods_introduce": "string //商品介绍",
        "add_time": "long //商品添加时间",
        "upd_time": "long //商品更新时间",
        "hot_mumber": "int //热门商品数",
        "cat_one_id": "int //所属一级分类",
        "cat_two_id": "int //所属二级分类",
        "cat_three_id": "int //所属三级分类",
        "is_del": "string //是否删除",
        "is_promote": "boolean //是否促销",
        "goods_state": "int //商品状态",
        "goods_cat": "string //商品分类",
        "delete_time": "date //删除时间",
        "createtime": "date //数据创建时间",
        "pics": [
          {
            "pics_id": "int //主键",
            "goods_id": "int //商品ID",
            "pics_big": "string //大图",
            "pics_mid": "string //中图",
            "pics_sma": "string //小图",
            "pics_big_url": "string //大图路径",
            "pics_mid_url": "string //中图路径",
            "pics_sma_url": "string //小图路径",
            "createtime": "date //创建时间"
          }
        ],
        "attrs": [
          {
            "attr_id": "int //主键",
            "goods_id": "int //商品ID",
            "attr_name": "string //属性名称",
            "attr_value": "string //属性属性值",
            "add_price": "int //属性价格",
            "atrr_vals": "string //属性多值",
            "attr_sel": "string //attr_sel",
            "attr_write": "string //attr_write",
            "createtime": "date //创建时间"
          }
        ],
        "goods_total_price": "double //小计价格"
      }
    ],
    "total_count": "int",
    "total_price": "double"
  }
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/com_neuedu_ec_controller_OrdersController_create_CommonResult.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/com_neuedu_ec_controller_OrdersController_create_CommonResult.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                        <div class="action-item">
<h2 id="pay"><a href="#">订单支付(支付模拟，仅改变订单状态为已支付) </a></h2>
    <p class="text-muted"><em>作者: 张金山 https://jshand.gitee.io/</em></p>
<p><strong>请求URL</strong></p>
<p>
    <code>/auth/order/pay</code>
        <span class="label label-default">GET</span>
        <span class="label label-default">POST</span>
</p>
                            <p><strong>请求头</strong></p>
                            <table class="table table-bordered">
                                <tr>
                                    <th>请求头名称</th>
                                    <th>类型</th>
                                    <th>必须</th>
                                    <th>描述</th>
                                </tr>
                                <tr style="color:#000;background: #bdc3c0" >
                                    <td>
                                        token
                                    </td>

                                    <td>string</td>
                                    <td>否</td>
                                    <td>请求头信息，用户调用wxlogin接口获取</td>
                                </tr>
                            </table>
    <p><strong>请求参数</strong></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>

                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>

                <tr
                >
                    <td>
                        orderNumber
                    </td>

                    <td>string</td>
                    <td>否</td>
                    <td>订单编号</td>
                </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
  "meta": {
    "code": "int //状态码",
    "msg": "string //状态消息"
  },
  "message": "boolean"
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/com_neuedu_ec_controller_OrdersController_pay_CommonResult.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/com_neuedu_ec_controller_OrdersController_pay_CommonResult.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                        <div class="action-item">
<h2 id="all"><a href="#">查询订单列表 </a></h2>
    <p class="text-muted"><em>作者: 张金山 https://jshand.gitee.io/</em></p>
<p><strong>请求URL</strong></p>
<p>
    <code>/auth/order/all</code>
        <span class="label label-default">GET</span>
        <span class="label label-default">POST</span>
</p>
                            <p><strong>请求头</strong></p>
                            <table class="table table-bordered">
                                <tr>
                                    <th>请求头名称</th>
                                    <th>类型</th>
                                    <th>必须</th>
                                    <th>描述</th>
                                </tr>
                                <tr style="color:#000;background: #bdc3c0" >
                                    <td>
                                        token
                                    </td>

                                    <td>string</td>
                                    <td>否</td>
                                    <td>请求头信息，用户调用wxlogin接口获取</td>
                                </tr>
                            </table>
    <p><strong>请求参数</strong></p>
        <table class="table table-bordered">
            <tr>
                <th>参数名</th>
                <th>类型</th>
                <th>必须</th>
                <th>描述</th>
            </tr>

                <tr
                >
                    <td>
                        type
                    </td>
                    <td>string</td>
                    <td>否</td>
                    <td>1:待付款 2:待发货 其他值(非1、2):全部</td>
                </tr>
        </table>
    <p><strong>返回结果</strong></p>
    <pre class="prettyprint lang-json">{
  "meta": {
    "code": "int //状态码",
    "msg": "string //状态消息"
  },
  "message": {
    "order_id": "int //订单id",
    "order_number": "string",
    "user_id": "string //用户id",
    "order_price": "double //订单总价格",
    "consignee_addr": "string //收货地址",
    "order_pay": "string //订单支付方式",
    "pay_status": "string //订单支付状态（1待支付 2已支付代发货)",
    "createtime": "date //订单生成时间",
    "goods": [
      {
        "goods_id": "int //商品ID",
        "cat_id": "int //分类id",
        "goods_name": "string //商品名称",
        "goods_price": "double //商品价格",
        "goods_number": "int //商品数量",
        "goods_weight": "int //商品重量",
        "goods_big_logo": "string //商品大图标",
        "goods_small_logo": "string //商品小图标",
        "goods_introduce": "string //商品介绍",
        "add_time": "long //商品添加时间",
        "upd_time": "long //商品更新时间",
        "hot_mumber": "int //热门商品数",
        "cat_one_id": "int //所属一级分类",
        "cat_two_id": "int //所属二级分类",
        "cat_three_id": "int //所属三级分类",
        "is_del": "string //是否删除",
        "is_promote": "boolean //是否促销",
        "goods_state": "int //商品状态",
        "goods_cat": "string //商品分类",
        "delete_time": "date //删除时间",
        "createtime": "date //数据创建时间",
        "pics": [
          {
            "pics_id": "int //主键",
            "goods_id": "int //商品ID",
            "pics_big": "string //大图",
            "pics_mid": "string //中图",
            "pics_sma": "string //小图",
            "pics_big_url": "string //大图路径",
            "pics_mid_url": "string //中图路径",
            "pics_sma_url": "string //小图路径",
            "createtime": "date //创建时间"
          }
        ],
        "attrs": [
          {
            "attr_id": "int //主键",
            "goods_id": "int //商品ID",
            "attr_name": "string //属性名称",
            "attr_value": "string //属性属性值",
            "add_price": "int //属性价格",
            "atrr_vals": "string //属性多值",
            "attr_sel": "string //attr_sel",
            "attr_write": "string //attr_write",
            "createtime": "date //创建时间"
          }
        ],
        "goods_total_price": "double //小计价格"
      }
    ],
    "total_count": "int",
    "total_price": "double"
  }
}</pre>
        <div class="form-group">
            <a type="button" class="btn btn-sm btn-default" href="javaCodes/com_neuedu_ec_controller_OrdersController_all_CommonResult.html"><i
                        class="fa fa-android" aria-hidden="true"></i> Android Model</a>
            <a type="button" class="btn btn-sm btn-default" href="iosCodes/com_neuedu_ec_controller_OrdersController_all_CommonResult.html"><i class="fa fa-apple"
                                                                                                 aria-hidden="true"></i>
                iOS Model</a>
        </div>
                        </div>
                        <hr>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/autocomplete.js/0/autocomplete.jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
<script>

    var search_source_data = [
            {name: '分类.商品分类', url: 'com_neuedu_ec_controller_CategoriesController.html#categories'},
            {name: '商品管理.商品列表搜索', url: 'com_neuedu_ec_controller_GoodsController.html#search'},
            {name: '商品管理. 商品详情', url: 'com_neuedu_ec_controller_GoodsController.html#detail'},
            {name: '首页.轮播图', url: 'com_neuedu_ec_controller_HomeController.html#swiperdata'},
            {name: '首页.导航', url: 'com_neuedu_ec_controller_HomeController.html#catitems'},
            {name: '首页.楼层', url: 'com_neuedu_ec_controller_HomeController.html#floordata'},
            {name: '订单管理.创建订单', url: 'com_neuedu_ec_controller_OrdersController.html#create'},
            {name: '订单管理.订单支付(支付模拟，仅改变订单状态为已支付)', url: 'com_neuedu_ec_controller_OrdersController.html#pay'},
            {name: '订单管理.查询订单列表', url: 'com_neuedu_ec_controller_OrdersController.html#all'},
            {name: '用户授权.code换Session', url: 'com_neuedu_ec_controller_UserController.html#code2Session'},
            {name: '用户授权.获取用户token', url: 'com_neuedu_ec_controller_UserController.html#wxlogin'},
    ];



    $('.toggle-catalog').click(function () {
        $('.book').toggleClass('with-summary');
    });

    $('#inputSearch').autocomplete({hint: false}, [
        {
            source: function (query, callback) {
                var result = [];
                for(var i = 0; i !== search_source_data.length; i++){
                    if(search_source_data[i].name.indexOf(query) !== -1){
                        result.push(search_source_data[i]);
                    }
                }
                callback(result);
            },
            displayKey: 'name',
            templates: {
                suggestion: function (suggestion) {
                    return suggestion.name;
                }
            }
        }
    ]).on('autocomplete:selected', function (event, suggestion, dataset, context) {
        self.location = suggestion.url;
    });
</script>
</body>
</html>